package com.ruoyi.appointments.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.appointments.mapper.AppointmentsMapper;
import com.ruoyi.appointments.domain.Appointments;
import com.ruoyi.appointments.service.IAppointmentsService;

/**
 * 预约信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-02
 */
@Service
public class AppointmentsServiceImpl implements IAppointmentsService 
{
    @Autowired
    private AppointmentsMapper appointmentsMapper;

    /**
     * 查询预约信息
     * 
     * @param id 预约信息主键
     * @return 预约信息
     */
    @Override
    public Appointments selectAppointmentsById(Long id)
    {
        return appointmentsMapper.selectAppointmentsById(id);
    }

    /**
     * 查询预约信息列表
     * 
     * @param appointments 预约信息
     * @return 预约信息
     */
    @Override
    public List<Appointments> selectAppointmentsList(Appointments appointments)
    {
        return appointmentsMapper.selectAppointmentsList(appointments);
    }

    /**
     * 新增预约信息
     * 
     * @param appointments 预约信息
     * @return 结果
     */
    @Override
    public int insertAppointments(Appointments appointments)
    {
        return appointmentsMapper.insertAppointments(appointments);
    }

    /**
     * 修改预约信息
     * 
     * @param appointments 预约信息
     * @return 结果
     */
    @Override
    public int updateAppointments(Appointments appointments)
    {
        return appointmentsMapper.updateAppointments(appointments);
    }

    /**
     * 批量删除预约信息
     * 
     * @param ids 需要删除的预约信息主键
     * @return 结果
     */
    @Override
    public int deleteAppointmentsByIds(Long[] ids)
    {
        return appointmentsMapper.deleteAppointmentsByIds(ids);
    }

    /**
     * 删除预约信息信息
     * 
     * @param id 预约信息主键
     * @return 结果
     */
    @Override
    public int deleteAppointmentsById(Long id)
    {
        return appointmentsMapper.deleteAppointmentsById(id);
    }
}
